package com.ibm.risk.irmp.base.service.client;

import com.ibm.risk.irmp.base.config.service.IConfigService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;

@HttpExchange("/config")
@Cacheable(cacheNames = "IrmpLoginDataCache", key = "'IConfigService.' + methodName + args")
public interface ConfigServiceClient extends IConfigService {
//    @Override
//    @GetMapping(value = "/hq-fin-branch-code")
//@Cacheable(key = "'BASE_CONF:' + methodName")
//    String getHqFinBranchCode();

    @Override
    @GetExchange(value = "/latest-data-date")
    String getLatestDataDate();

//    @Override
//    @GetMapping(value = "/hq-mng-branch-code")
    //@Cacheable(key = "'BASE_CONF:' + methodName")
//    String getHqMngBranchCode();
}
